import 'package:flutter/material.dart';
import 'package:flutter_shop_template/pages/widgets/card/two.dart';

class HomeTabView2 extends StatefulWidget {
  const HomeTabView2({Key? key}) : super(key: key);

  @override
  _HomeTabView2State createState() => _HomeTabView2State();
}

class _HomeTabView2State extends State<HomeTabView2> {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.symmetric(horizontal: 20),
      child: GridView.count(
        crossAxisCount: 2,
        childAspectRatio: 0.61,
        mainAxisSpacing: 10,
        crossAxisSpacing: 5,
        children: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
            .map(
              (e) => CustomCard2(
                imageUrl: "https://cdn.xihaf.com/template/col${e + 11}.jpg",
                title: '九味佳 日式和风酱油0脂肪油醋汁健身餐轻食调味料酱汁268g 3瓶装',
              ),
            )
            .toList(),
      ),
    );
  }
}
